<template>
	<div></div>
</template>

<script>
	export default {
		name: "view_invoice",
		data() {
			return {
				tradeNo: this.$route.params.tradeNo,
				kid: this.$route.params.kid,
			}
		},
		created: function() {
			var that = this;
			if (this.kid == undefined || this.kid.length <= 0) {
				this.common.post(this.api.myview, {
					tradeNo: this.tradeNo
				}, function(res) {
					that.common.toPage(res.resultMap, true);
				});
			} else {
				this.common.post(this.api.viewInvoice, {
					tradeNo: this.tradeNo,
					kid: this.kid
				}, function(res) {
					that.common.toPage(res.resultMap, true);
				});
			}
		},
		methods: {

		},
		components: {

		}
	}
</script>

<style>
</style>
